<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=utf-8" errorPage="/error.jsp" isELIgnored="false" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.opensymphony.com/oscache" prefix="cache" %>
<%@ taglib uri="http://atleap.blandware.com/taglib" prefix="atleap" %>
<html:xhtml />


<atleap:constants className="com.blandware.atleap.webapp.util.core.WebappConstants" var="HTML_TEXT_FIELD_MAX_LENGTH" />
<atleap:javascript formName="forumForm" staticJavascript="false" dynamicJavascript="true" method="validateForm" cdata="false" />
<atleap:content identifier="information" ignore="true" uri="/forum/forum/callUpdate"/>
<atleap:messages property="forumAlreadyExists" />
<atleap:messages property="updateFailed" />
<atleap:form action="forum/forum/update" method="POST">
    <table cellpadding="0" cellspacing="0" border="0" class="modificationTable">
		<tr>
			<th>
                <atleap:label property="singleTitle" key="forum.forum.form.title" colon="false" helpTip="true" />
			</th>
			<td>
                <html:text property="singleTitle" styleClass="text" maxlength="${pageScope.HTML_TEXT_FIELD_MAX_LENGTH}" />
			</td>
		</tr>
	</table>
    <div class="languageField">
        <atleap:message key="forum.forum.form.annotation" />
    </div>
    <atleap:base var="baseHref" />
    <atleap:contentEditor id="annotation" basePath="${ctxPath}/FCKeditor/"
            width="100%" height="400px" defaultLanguage="${sessionScope[pageScope.LOCALE_KEY].language}"
            baseHref="${baseHref}" editorAreaLanguage="${forumForm.languageIdentifier}">
        ${forumForm.annotation}
    </atleap:contentEditor>

    <html:hidden property="id" />
    <html:hidden property="uri" />
    <html:hidden property="version" />
    <html:hidden property="active" />
    <html:hidden property="languageIdentifier" />
    <atleap:submit styleClass="button"><atleap:message key="core.commons.buttons.update" /></atleap:submit>
    <atleap:cancel styleClass="button"><atleap:message key="core.commons.buttons.cancel" /></atleap:cancel>
</atleap:form>
